<?php /*%%SmartyHeaderCode:20931589bd25b047772-38961358%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0e0454e276cc68da62e0e9b089ed90a5f0c42cb3' => 
    array (
      0 => 'F:/cly/Show/Admin/View\\Newsclass\\showlist.html',
      1 => 1486607013,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '20931589bd25b047772-38961358',
  'cache_lifetime' => 3600,
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_589bd2c6f0d2c',
  'variables' => 
  array (
    'newsclass' => 0,
    'news_list' => 0,
  ),
  'has_nocache_code' => false,
),true); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_589bd2c6f0d2c')) {function content_589bd2c6f0d2c($_smarty_tpl) {?><!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <link href="/Show/Admin/Public/css/news.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="/Show/Admin/Public/js/jqselect.js"></script>
    <script type="text/javascript" src="/Show/Admin/Public/js/jquery-3.1.1.min.js"></script>
    <title>新闻栏目</title>
    
    <script type="text/javascript">

      $(document).ready(function(){

       $("td[id]").dblclick(function(){
         var fd = $(this).attr("id");
         var inval = $(this).html();
         $(this).html("<input id='e"+fd+"' value='"+inval+"'>");

         $("#e"+fd).focus().on("blur",function(){
           var edval = $(this).val();
           $(this).parents("td").html(edval);
           $.post("ajax/newsclass.php",{id:fd,val:edval},function(data){
             $("#div").html(data);
           });
         });
       });

        $("input[name='name']").focus(function(){
          $(this).parents("tr").addClass("bgcolor");
        }).on("blur",function(){
          $(this).parents("tr").removeClass("bgcolor");
        })

      });

    </script>
   
   </head>
   <body>
    <form action="add_newsclass.php" method="post">
    <div class="mainbox">
          <div class="title">&nbsp;&nbsp;添加新闻栏目</div>
          <div class="tablebox">
            <table class="table tb">
              <tr>
                <td>
                 所属栏目
                 <select name="news_type">
</select>

                 <input type="text" name="name" required="required">
                 <input type="submit" name="sub" value="添加">
                </td>
              </tr>
            </table>
          </div>
    </div>
    </form>
    <form action="add_newsclass.php" method="post">
    <div class="mainbox">
          <div class="tablebox">
            <table class="table">
              <tr class="one">
                <td>
                <input type="checkbox" id="selectAll">全选
                <input type="checkbox" id="unselectAll">反选
                </td>
                <td>ID</td>
                <td><span class="span three">栏目名称</span></td>
                <td><span class="span four">内容数</span></td>
                <td id="a">操作</td>
              </tr>
                            </table>
          </div>
          <div class="ope">
            <input type="submit" name="del" value="删除">
          </div>
    </div>
    </form>
  </body>
</html><?php }} ?>